<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Note</title>
</head>

<body>
    <div data-ng-app="myApp" data-ng-controller="myCtrl">
        <h2>我的笔记</h2>
        <p><textarea data-ng-model="msg" cols="30" rows="10"></textarea></p>
        <p>
            <button data-ng-click="save()">保存</button>
            <button data-ng-click="clear()">清除</button>
        </p>
        <p>剩余字数：{{left()}}</p>
    </div>
    <script src="../node_modules/angular/angular.min.js"></script>
    <script src="note.js"></script>
</body>

</html>
